/*
 * 分类页面
 * */

import React, { Component } from 'react';
import {
    StyleSheet,
    Text,
    View,
    ScrollView,
    Navigator,
    TouchableHighlight,
    TouchableOpacity
} from 'react-native';

import NavBar from '../components/NavBar';
import GoodsList from './GoodsList';

export default class Category extends Component {
    onPress(val){
        console.alert(val);
    }
    render() {
        return (
            <View>
                <NavBar
                    titleName={'分类页面'}
                    navigator={this.props.navigator}
                />

                <TouchableHighlight
                    onPress={()=>this.props.navigator.push({
                        sceneConfig: Navigator.SceneConfigs.FloatFromRight,
                        component: GoodsList,
                        params:{
                            name: '列表页面'
                        }
                    })
                }>
                    <Text style={[styles.text]}>
                        跳转到列表页面
                    </Text>
                </TouchableHighlight>

            </View>
        )
    }
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: '#F5FCFF',
    }
});



